package dbhandler.handler;

import dbhandler.ResultSetHandler;
import dbhandler.Row;

import java.sql.ResultSet;
import java.sql.SQLException;
import java.util.Map;

public class MapHandler implements ResultSetHandler<Map<String,Object>> {
    public Map<String, Object> handler(ResultSet rs) throws SQLException {
        return rs.next()?Row.toMap(rs):null;
    }
}
